<%@ page language="java" contentType="text/html; charset=EUC-KR"
    pageEncoding="EUC-KR"%>
    <%@ page import="java.util.HashMap" %>
<jsp:useBean id="hakTest" class="kr.co.hanbit.HakTest"></jsp:useBean>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">
<title>Insert title here</title>
</head>
<body>
<%
String bun=request.getParameter("searchbunho");
HashMap<String,String> hakHash =hakTest.hakSearch(bun);
String age= null;
String irum= null;
String hakbun=null;
%>
<% 
String bunho=hakHash.get("gubun");
if(bunho.equals("1")){
	age=hakHash.get("age");
	irum= hakHash.get("irum");
	hakbun=hakHash.get("hakbun");
}else if(bunho.equals("2")){
	age=hakHash.get("age");
	irum= hakHash.get("irum");
	hakbun=hakHash.get("part1");
}else if(bunho.equals("3")){
	    age=hakHash.get("age");
	    irum= hakHash.get("irum");
     	hakbun=hakHash.get("part2");
}
%>
<%=age %>
<%=irum %>
<%=hakbun %>

</body>
</html>